package com.smedi.ismedi.organization.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smedi.ismedi.database.starter.annotation.SqlItem;
import com.smedi.ismedi.database.starter.annotation.SqlPermission;
import com.smedi.ismedi.database.starter.interceptor.permission.SqlItemEnum;
import com.smedi.ismedi.organization.core.port.adapter.persistence.model.ProjectOrganizationEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@SqlPermission({
        @SqlItem(item = SqlItemEnum.project, table = {ProjectOrganizationEntity.class})
})
public interface ProjectOrganizationMapper extends BaseMapper<ProjectOrganizationEntity> {
    List<ProjectOrganizationEntity> selectRootByProjectId(@Param("projectId") Long projectId);
}
